<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>QQ音乐排行榜</title>
  </head>
  <style>
    body {
      margin: 0;
    }
    .music-menu {
      width: 700px;
      margin: 50px auto 0;
    }
    table {
      border-collapse: collapse;
      border-spacing: 0;
    }
    table tr th {
      height: 80px;
      text-align: left;
      font-size: 16px;
      font-weight: 400;
      color: #fff;
      background-color: #31c27c;
    }
    table tr td {
      height: 80px;
    }
    table tr:nth-of-type(odd) {
      background-color: #ddd;
    }
    .col1 {
      width: 60px;
    }
    .col2 {
      width: 60px;
    }
    .col4 {
      width: 80px;
    }
    .col5 {
      width: 80px;
    }
    .icon_rank_popular {
      width: 15px;
      height: 15px;
      margin-top: 6px;
      background-position: 0 -60px;
      display: block;
      margin-left: auto;
      margin-right: auto;
      background-image: url(https://y.qq.com/ryqq/static/media/icon_rank.7d86a039.png?max_age=2592000);
    }
    table tr td:nth-child(1) {
      text-align: center;
      font-size: 24px;
      color: #333;
    }
    table tr td:nth-child(1) span {
      color: #ff4222;
    }
    table tr td:nth-child(2) {
      text-align: center;
      font-size: 12px;
      color: #999;
    }
    table tr td:nth-child(4) {
      color: #000;
      font-size: 14px;
    }
    table tr td:nth-child(5) {
      color: #999;
      font-size: 14px;
    }
    .song {
      position: relative;
      /* height: 80px;
      line-height: 80px; */
    }
    .song img {
      vertical-align: middle;
    }
    .song .song-content {
      height: 40px;
      line-height: 40px;
      position: absolute;
      top: 0;
      left: 45px;
      right: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 14px;
    }
    .song .song-content span {
      color: #999;
    }
    .song .action {
      display: none;
      width: 124px;
      height: 36px;
      position: absolute;
      top: 2px;
      right: 0;
    }
    .song .action i {
      display: inline-block;
      width: 36px;
      height: 36px;
      background-image: url(https://y.qq.com/ryqq/static/media/icon_list_menu.08951c0e.png?max_age=2592000);
      background-repeat: no-repeat;
    }
    .song .action .add {
      background-position: 0 -80px;
    }
    .song .action .share {
      background-position: 0 -40px;
    }
    table tr td:hover .song .song-content {
      right: 124px;
    }
    table tr td:hover .song .action {
      display: block;
    }
    .song .action .play:hover {
      background-position: -40px 0;
    }
    .song .action .add:hover {
      background-position: -40px -80px;
    }
    .song .action .share:hover {
      background-position: -40px -40px;
    }
  </style>
  <body>
    <div class="music-menu">
      <table style="width: 100%">
        <colgroup>
          <col span="1" class="col1" />
          <col span="1" class="col2" />
          <col span="1" class="col3" />
          <col span="1" class="col4" />
          <col span="1" class="col5" />
        </colgroup>
        <tr>
          <th></th>
          <th></th>
          <th>歌曲</th>
          <th>歌手</th>
          <th>时长</th>
        </tr>
        <tr>
          <td>
            <span>1</span>
          </td>
          <td>
            <i class="icon_rank_popular"></i>
            <span>148%</span>
          </td>
          <td>
            <div class="song">
              <img src="https://y.qq.com/music/photo_new/T002R300x300M000002GnDl21kYE0z_2.jpg?max_age=2592000" alt="" height="40">
              <div class="song-content">去有风的地方 <span>《去有风的地方》 电视剧主题曲</span></div>
              <div class="action">
                <i class="play"></i>
                <i class="add"></i>
                <i class="share"></i>
              </div>
            </div>
          </td>
          <td>陈奕迅</td>
          <td>03:43</td>
        </tr>
        <tr>
          <td>
            <span>2</span>
          </td>
          <td>
            <i class="icon_rank_popular"></i>
            <span>128%</span>
          </td>
          <td>
            <div class="song">
              <img src="https://y.qq.com/music/photo_new/T002R300x300M000002GnDl21kYE0z_2.jpg?max_age=2592000" alt="" height="40">
              <div class="song-content">盲婚哑嫁</div>
              <div class="action">
                <i class="play"></i>
                <i class="add"></i>
                <i class="share"></i>
              </div>
            </div>
          </td>
          <td>柏松</td>
          <td>03:47</td>
        </tr>
      </table>
    </div>
  </body>
</html>
